#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Copyright © 启明星辰 版权所有
# @Time    : 2023/10/31 10:56
# @Author  : 胡浩浩
# @File    : denugs.py
# @IDE     : PyCharm
# @description :
import jmespath

from src.api import background_tasks


async def write_to_file(path,data):
    print(data)
    print(path)
    with open(path, mode="w", encoding="utf-8") as f:
        f.write(data)


if __name__ == '__main__':
    background_tasks.add_task(write_to_file("test.log","胡浩浩"))